package com.neu.wms.service.impl;

import com.neu.wms.mapper.WmsSupplierMapper;
import com.neu.wms.service.SupplierService;
import com.neu.wms.util.entity.WmsSupplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Resource
    private WmsSupplierMapper wmsSupplierMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return wmsSupplierMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WmsSupplier record) {
        return wmsSupplierMapper.insert(record);
    }

    @Override
    public int insertSelective(WmsSupplier record) {
        return wmsSupplierMapper.insertSelective(record);
    }

    @Override
    public WmsSupplier selectByPrimaryKey(Long id) {
        return wmsSupplierMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(WmsSupplier record) {
        return wmsSupplierMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WmsSupplier record) {
        return wmsSupplierMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<WmsSupplier> selectAll() {
        return wmsSupplierMapper.selectAll();
    }
}
